package org.langqiao.array;

import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

public class ArraysToList {
	
    public static void main(final String[] args) {
        System.out.println(
                Arrays.asList(new String[] { "a", "b" }));
 
        System.out.println(
                Arrays.asList(new Integer[] { 1, 2 }));
 
        System.out.println(
                Arrays.toString(new int[] { 1, 2 }));
 
        System.out.println(
                Arrays.asList(new String[] { "a", "b" }, "c"));
        
        String[] str = new String[]{"a","c"};
        List list = Arrays.asList(str);
        str[0] = "c";
        System.out.println(list.get(0));
        ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>();
        //list.add("c");
        //System.out.println(list.size());
    }
}
